package makeEqual;

public class Solution {
    public boolean makeEqual(String[] words) {
        // 统计每个单词的数量是不是words.length的倍数
        int[] cnt = new int[26];
        for (int i = 0; i < words.length; i++) {
            for (int j = 0; j < words[i].length(); j++) {
                cnt[words[i].charAt(j)-'a']++;
            }
        }
        for (int i = 0; i < 26; i++) {
            if(cnt[i]%words.length!=0) return false;
        }
        return true;
    }
}
